package com.ls.task.bean;

import java.util.Date;
import java.util.List;

import javax.persistence.Column;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ls.fw.data.annotation.FwColumn;

public class JobStatus {

	private String name;
	private String group;
	
	private List<TriggerStatus> triggers;
	
	public static class TriggerStatus{
		private String name;
		private String group;
		 /**
	     * 实际执行时间
	     */
	    private Date fireDt;

	    /**
	     * 前一次实际执行时间
	     */
	    private Date previousDt;

	    /**
	     * 下一次该执行时间
	     */
	    private Date nextDt;
	    private Date startDt;
	    private Date endDt;
	    private String status;
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public String getGroup() {
			return group;
		}
		public void setGroup(String group) {
			this.group = group;
		}
		@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
		public Date getFireDt() {
			return fireDt;
		}
		public void setFireDt(Date fireDt) {
			this.fireDt = fireDt;
		}
		@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
		public Date getPreviousDt() {
			return previousDt;
		}
		public void setPreviousDt(Date previousDt) {
			this.previousDt = previousDt;
		}
		@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
		public Date getNextDt() {
			return nextDt;
		}
		public void setNextDt(Date nextDt) {
			this.nextDt = nextDt;
		}
		@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
		public Date getStartDt() {
			return startDt;
		}
		public void setStartDt(Date startDt) {
			this.startDt = startDt;
		}
		@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
		public Date getEndDt() {
			return endDt;
		}
		public void setEndDt(Date endDt) {
			this.endDt = endDt;
		}
		public String getStatus() {
			return status;
		}
		public void setStatus(String status) {
			this.status = status;
		}
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public String getGroup() {
		return group;
	}


	public void setGroup(String group) {
		this.group = group;
	}


	public List<TriggerStatus> getTriggers() {
		return triggers;
	}


	public void setTriggers(List<TriggerStatus> triggers) {
		this.triggers = triggers;
	}
}
